package com.hybao.common;

import org.apache.log4j.Logger;

import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;

public class TopBaseClient {
	private TaobaoClient client;
	private Logger log;
	private String apiUrl;
	private String appKey;
	private String appSecret;
	
	public TaobaoClient getClient() {
		client = new DefaultTaobaoClient(apiUrl, appKey, appSecret);
		return client;
	}

	public void setClient(TaobaoClient client) {
		this.client = client;
	}

	public Logger getLog() {
		log = Logger.getLogger(TopBaseClient.class.getName());
		return log;
	}

	public void setLog(Logger log) {
		this.log = log;
	}

	public String getApiUrl() {
		return apiUrl;
	}

	public void setApiUrl(String apiUrl) {
		this.apiUrl = apiUrl;
	}

	public String getAppKey() {
		return appKey;
	}

	public void setAppKey(String appKey) {
		this.appKey = appKey;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}
}
